import { AbstractDraw } from './AbstractDraw'

export class DrawInit extends AbstractDraw {
  private start = 40
  constructor(ctx: CanvasRenderingContext2D, startY: number, private height: number) {
    super(ctx, startY)
  }

  /**
   * 初始化
   */
  public draw() {
    // 将坐标原点移动左下角
    this.ctx.translate(this.start, this.height - this.start)
  }
}
